package com.second.oa.domain;
// default package

import java.util.Date;
import java.util.HashSet;
import java.util.Set;



public class Employee  implements java.io.Serializable {


    // Fields    

     private String id;
     private Department department;
     private String code;
     private String password;
     private String name;
     private String gender;
     private Date birthday;
     private String job;
     private String introduction;
     private String phone;
     private String email;
     private String qq;
     private String wechat;
     private Set<Role> roles = new HashSet<Role>();
     
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Department getDepartment() {
		return department;
	}
	public void setDepartment(Department department) {
		this.department = department;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getJob() {
		return job;
	}
	public void setJob(String job) {
		this.job = job;
	}
	public String getIntroduction() {
		return introduction;
	}
	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getWechat() {
		return wechat;
	}
	public void setWechat(String wechat) {
		this.wechat = wechat;
	}
	public Set<Role> getRoles() {
		return roles;
	}
	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}
	public Employee(String id, Department department, String code,
			String password, String name, String gender, Date birthday,
			String job, String introduction, String phone, String email,
			String qq, String wechat, Set<Role> roles) {
		super();
		this.id = id;
		this.department = department;
		this.code = code;
		this.password = password;
		this.name = name;
		this.gender = gender;
		this.birthday = birthday;
		this.job = job;
		this.introduction = introduction;
		this.phone = phone;
		this.email = email;
		this.qq = qq;
		this.wechat = wechat;
		this.roles = roles;
	}
	public Employee() {
		super();
	}
	public Employee(String id, Department department, String code,
			String password, String name, String gender, Date birthday,
			String job, String introduction, String phone, String email,
			String qq, String wechat) {
		super();
		this.id = id;
		this.department = department;
		this.code = code;
		this.password = password;
		this.name = name;
		this.gender = gender;
		this.birthday = birthday;
		this.job = job;
		this.introduction = introduction;
		this.phone = phone;
		this.email = email;
		this.qq = qq;
		this.wechat = wechat;
	}
	@Override
	public String toString() {
		return "Employee [birthday=" + birthday + ", code=" + code
				+ ", department=" + department + ", email=" + email
				+ ", gender=" + gender + ", id=" + id + ", introduction="
				+ introduction + ", job=" + job + ", name=" + name
				+ ", password=" + password + ", phone=" + phone + ", qq=" + qq
				+ ", roles=" + roles + ", wechat=" + wechat + "]";
	}
	
}